package com.demo.listener;

import com.demo.event.DemoEvent02;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component
public class DemoApplicationListener02 {
    @EventListener(DemoEvent02.class)
    public void onListener(DemoEvent02 demoEvent02){
        demoEvent02.eventPublish();
    }
}
